//
//  ModelOfPostSpecificSearchResult.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/2.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfPostSpecificSearchResult.h"

@implementation ModelOfPostSpecificSearchResult
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"photo"]) {
        self.photo = value;
    }if ([key isEqualToString:@"title"]) {
        self.title = value;
    }if ([key isEqualToString:@"username"]) {
        self.username = value;
    }if ([key isEqualToString:@"avatar"]) {
        self.avatar = value;
    }if ([key isEqualToString:@"replys"]) {
        self.replys = value;
    }if ([key isEqualToString:@"likes"]) {
        self.likes = value;
    }if ([key isEqualToString:@"views"]) {
        self.views = value;
    }if ([key isEqualToString:@"view_url"]) {
        self.view_url = value;
    }if ([key isEqualToString:@"digest_level"]) {
        self.digest_level = [value integerValue];
    }if ([key isEqualToString:@"lastpost"]) {
        self.lastpost = [value integerValue];
    }if ([key isEqualToString:@"user_id"]) {
        self.user_id = [value integerValue];
    }
}
@end
